package View;

import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Paint;
import java.awt.Shape;
import java.awt.geom.Ellipse2D;

public class Bubble {
    
    private String myLabel;
    private Shape myShape;
    private Paint myColor;
    
    public Bubble(double x, double y, double radius){
        myShape = new Ellipse2D.Double(x, y, radius, radius);
        myColor=Color.green;
    }
    
    public boolean isClicked(double x, double y){
        
        // if true call controller, get data and display another graph
        
        return false;
        
    }
   
    public void draw(Graphics g){
        Graphics2D g2d = (Graphics2D)g;
        g2d.draw(myShape);
        g2d.setPaint(myColor);
        g2d.fill(myShape);
    }

}

